<!DOCTYPE html>
<html>
<head>
    <title>借阅记录</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div>
        <div class="grid-btn">
            <div class="form-group col-sm-4">
                <input type="text" class="form-control" v-model="q.code" @keyup.enter="query" placeholder="产品RFID编号">
            </div>
            <a class="btn btn-success" @click="query">借出</a>
        </div>
    </div>


    <div v-show="book.id" class="panel panel-success">
        <div class="panel-heading">产品详情</div>
        <form class="form-horizontal" onsubmit="return false">
            <div class="form-group">
                <div class="col-sm-2 control-label">名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" disabled v-model="book.name" placeholder="名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">类别</div>
                <div class="col-sm-10">
                    <select class="form-control" disabled v-model="book.type">
                        <option v-for="l in types" :value="l.id">{{l.name}}</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">出版社</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" disabled v-model="book.chuban"
                           placeholder="出版社"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">作者</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" disabled v-model="book.author"
                           placeholder="作者"/>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-2 control-label">所在位置</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" disabled v-model="book.area" placeholder="所在位置"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">介绍</div>
                <div class="col-sm-10">
                    <textarea class="form-control" disabled v-model="book.content" placeholder="介绍"
                              cols="30" rows="5"></textarea>
                </div>
            </div>


        </form>

    </div>
</div>

<script src="${rc.contextPath}/js/admin/out.js?_${date.systemTime}"></script>
</body>
</html>